package practice8;

public class Car extends Auto {
	boolean KT;
	boolean CD;

	public Car(int tyrenumber, String color, double weight, double speed, boolean KT, boolean CD) {
		super(tyrenumber, color, weight, speed);
		this.KT = KT;
		this.CD = CD;
	}
	
	public void speedUp(){
		speed += 2;
	}
	
	public void speedDown(){
		speed -= 2;
	}
	
	public String toString(){
		return "Car[speed = " + speed + "]";
	}
	
	public static void main(String[] args){
		Car c = new Car(4, "black", 1000, 100, true, true);
		System.out.println(c.toString());
		c.speedUp();
		System.out.println(c.toString());
	}


}
